cmake_minimum_required(VERSION 3.17)
project(NfP)

set(CMAKE_CXX_STANDARD 17)

set(OpenCV_DIR /home/wya/Project/3rdparty/install/opencv-3.4.10/share/OpenCV)
#set(Armadillo_DIR /home/wya/project/3rdparty/armadillo-10.4.1/install/include)
#set(Eigen3_DIR /home/wya/project/3rdparty/eigen-3.4-rc1/install/share/eigen3/)

#find_package (Armadillo 10.4.1 EXACT REQUIRED PATHS /home/wya/project/3rdparty/armadillo-10.4.1/install/share/Armadillo )
find_package(Armadillo  REQUIRED)
find_package( OpenCV  REQUIRED )
find_package( Eigen3  REQUIRED )


include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories( ${Eigen3_INCLUDE_DIRS} )
include_directories( ${Armadillo_INCLUDE_DIRS} )
add_executable(NfP main.cpp  polarization.h polarization.cpp imageProcess.cpp imageProcess.h)

target_link_libraries( NfP -larmadillo ${OpenCV_LIBS} ${Eigen3_LIBS} )
